﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace YL.Core.Entity.Meter
{
    /// <summary>
    /// 巡检
    /// </summary>
    [SugarTable("Meter_InspectionHistory")]
    public class InspectionHistory
    {
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
        public long HistoryId { set; get; }
        /// <summary>
        /// 站点
        /// </summary>
        public long ClientId { set; get; }
        /// <summary>
        /// 监控点
        /// </summary>
        public long DeviceId { set; get; }
        /// <summary>
        /// 站点
        /// </summary>
        public string ClientName { set; get; }
        /// <summary>
        /// 巡检人员
        /// </summary>
        public string Inspector { set; get; }
        /// <summary>
        /// 计划巡检时间
        /// </summary>
        public DateTime InspectionTime { set; get; }
        /// <summary>
        /// 实际巡检时间
        /// </summary>
        public DateTime CreateTime { set; get; }
        /// <summary>
        /// 是否正常（0:正常，1：异常）
        /// </summary>
        public int? IsNormal { set; get; }=0;
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { set; get; }
        /// <summary>
        /// 登录用户Id
        /// </summary>
        public long UserId { set; get; }
    }
}
